﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sapiens.at.SharePoint.SQLM
{
    /// <summary>
    /// Get SP2013 path
    /// </summary>
    public static class SP2013
    {
        /// <summary>
        /// Gets the path to CONTROLTEMPLATES, LAYOUTS and Images: '15/' if SP2013 or '' if SP2010. Useage: "~/_controltemplates/" + SP2013Path.Path + "sapiens.at.sharepoi...."
        /// </summary>
        public static string Path
        {
            get
            {
#if SP2013
                return "15/";
#else
                return "";
#endif
            }
        }
        public static string Name14or15
        {
            get
            {
#if SP2013
                return "15";
#else
                return "14";
#endif
            }
        }

        public static string NameEmptyOr15
        {
            get
            {
#if SP2013
                return "15";
#else
                return "";
#endif
            }
        }

        public static string QSParam_DisableClientRender
        {
            get
            {
#if SP2013
                return "&ClientRender=FALSE";
#else
                return "";
#endif
            }
        }
    }
}
